package com.akina.matchsystem.service;

import com.akina.matchsystem.model.domain.User;
import com.akina.matchsystem.model.request.PrivateChatRequest;
import com.akina.matchsystem.model.request.TeamChatRequest;
import com.akina.matchsystem.model.vo.MessageVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.akina.matchsystem.model.domain.Chat;

import java.util.List;

/**
* @author 浪子心声
* @description 针对表【chat】的数据库操作Service
* @createDate 2024-03-31 09:52:23
*/
public interface ChatService extends IService<Chat> {

    //public boolean saveChat();
    public Boolean saveMessage(Chat chat);

    /**
     *
     * @param teamChatRequest
     */
    List<MessageVO> getTeamChat(TeamChatRequest teamChatRequest);

    List<MessageVO> getChat(PrivateChatRequest privateChatRequest, User loginUser);
}
